package com.qf.lanzhou.blog.api.service.impl;

import com.qf.lanzhou.blog.api.dao.CollectDao;
import com.qf.lanzhou.blog.api.dao.Impl.CollectDaoimpl;
import com.qf.lanzhou.blog.api.pojo.entity.Collect;
import com.qf.lanzhou.blog.api.service.CollectService;

import java.util.List;

/**
 * @Author jian
 * @Date 2020/12/17 15:33
 * @JDK 1.8
 * @Version 1.0
 */
public class CollectServiceimpl implements CollectService {
    private CollectDao collectDao=new CollectDaoimpl();
    @Override
    public List<Collect> select(String userId, String articleId, String collectStatus) {
        return collectDao.select(collectStatus);
    }

    @Override
    public int insert(String userId, String articleId, String collectStatus) {
        return collectDao.insert(userId,articleId,collectStatus);
    }
}
